<?php
require_once './objects.php';
require_once './functions.php';
session_start();
header('Content-Type: application/json; charset=utf-8');
//$datos = json_decode($_GET["datos"]);
$id=$_GET["id"];
$email=$_GET["email"];


$conexion1 = mysql_connect("localhost", "root", "root");
mysql_select_db("stick_wars", $conexion1);
$datos="UPDATE usuarios SET email='$email' WHERE id_user='$id' ";
//$datos = "INSERT INTO datos (id_user,nombre) VALUES ('$idu','dsfsdfdfdsf')";
mysql_query($datos) or die(mysql_error());

$array="ok2";
echo json_encode($array);


//' . $nombre . '
?>